<script setup lang="ts">
	// #ifdef APP-PLUS
	// 将安卓APP底部安全区背景色设置为透明，以解决底部安全区遮挡问题。
	// var Color = plus.android.importClass("android.graphics.Color");
	// plus.android.importClass("android.view.Window");
	// var mainActivity = plus.android.runtimeMainActivity();
	// var window_android = mainActivity.getWindow();
	// var WindowManager = plus.android.importClass("android.view.WindowManager");
	// var View = plus.android.importClass("android.view.View");
	// //设置为全透明
	// window_android.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | WindowManager.LayoutParams
	// 	.FLAG_TRANSLUCENT_NAVIGATION);
	// window_android.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View
	// 	.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
	// window_android.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
	// window_android.setNavigationBarColor(Color.TRANSPARENT);
	// #endif

	import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
	onLaunch(() => {
		console.log("App Launch");
	});
	onShow(() => {
		console.log("App Show");
	});
	onHide(() => {
		console.log("App Hide");
	});
</script>

<style>
	/* 引入自定义字体 */
	@font-face {
		font-family: 'SourceHanSansSCHeavy';
		src: url('/static/ttf/SourceHanSansSC-Heavy-2.woff') format('woff');
	}

	body {
		/* 设置全局字体 */
		/* font-family: SourceHanSansSC, system-UI, -apple-system, BlinkMacSystemFont, segoeui, Roboto, Helvetica, Arial, sans-serif; */
		font-family: 'SourceHanSansSCHeavy';
		background: rgba(242, 242, 242, 1);
		
	}

	page {
		height: 100%;
	}

	button::after {
		border: none !important;
	}
</style>